﻿<script type="text/javascript" src="live.js?ver={$version}" href="live.css?ver={$version}"></script>
<div class="navi-bar">
    <a href="/" class="nav-txt">首页</a> &gt; <a href="/courses.ashx" class="nav-txt">课程中心</a>
    &gt; 直播课
</div>
<div class="liveList">
    <vt:foreach from="$#.lives" item="o" index="i" size="40" remark="直播章节列表">
          <div class="livebox">
           <vt:function var="liveCou" method="GetCourse" args="$#.o.Cou_ID"  remark="获取直播课程"/>
           <vt:function var="snapshot" method="GetSnapshot" args="$#.o.Ol_LiveID"  remark="获取直播截图"/>
          <div class="snapshot">
          
          <a href="CourseStudy.ashx?couid={$:#.liveCou.Cou_id}&olid={$:#.o.ol_id}" target="_blank" class="bvr_mr" title="开始学习">
           <vt:if var="snapshot" value="" compare="!="> 
          <img src="{$:#.snapshot}" style="width:600px;height:337px" default="images/liveSnapshot.jpg"/>
            <vt:else/>
             <img src="images/liveSnapshot.jpg" style="width:600px;height:337px"/>
            </vt:if>
          </a>
          </div>
          <div class="liveRight">
        
                 <a href="course.ashx?id={$:#.liveCou.Cou_id}"  class="couName" target="_blank"> {$:#.liveCou.Cou_Name}</a>
          
            
     
         <a href="CourseStudy.ashx?couid={$:#.liveCou.Cou_id}&olid={$:#.o.ol_id}" target="_blank" class="liveinfo">直播内容：{$:#.o.Ol_Name}</a>
                <div class="liveinfo">开始时间：{$:#.o.Ol_LiveTime format="yyyy-M-d HH:mm"}</div>
         <div class="liveinfo">直播时长：{$:#.o.Ol_LiveSpan}分钟</div>
          <div class="couBtn"><a href="CourseStudy.ashx?couid={$:#.liveCou.Cou_id}&olid={$:#.o.ol_id}" target="_blank" class="bvr_mr" title="开始学习">正在直播</a></div>
          </div>
          </div>
          </vt:foreach>
</div>
<div class="courseList">
    <vt:if var="course.Count" value="0" compare="!="> 
    <div class="courseListInner">
      <vt:foreach id="course" from="$#.course" item="c" index="i" size="40" remark="课程列表">
        <div class="course-item"> <a href="/course.ashx?id={$:#.c.cou_id}" target="_blank" title="{$:#.c.cou_name}" class="cour-img"><img src="{$:#.c.cou_logosmall}" default="../../images/cou_nophoto.jpg" /></a> <a href="/course.ashx?id={$:#.c.cou_id}" target="_blank" title="{$:#.c.cou_name}" class="cour-name"><vt:if var="c.Cou_ExistLive" value="true" compare="=" remark="直播">
                 <div class="live" title="直播课"></div>
                 </vt:if> {$:#.c.cou_name} </a>
                  <div class="cour-price">
                    <vt:if var="c.cou_isfree" value="true" compare="="> <span class="free">免费</span>
                      <vt:else/>
                      <vt:function var="price" method="getCoursePrice" args="$#.c.cou_uid"/>
                      <span class="money">
                      <vt:foreach from="$price" item="p" index="i" count="1"  remark="当前课程价格"> <span class="moneyico money-ico">&#xe625;</span> <span class="p-num">{$:#.p.CP_Price}元</span> <span class="p-span">/{$:#.p.CP_Span}</span> <span class="p-unit">{$:#.p.CP_Unit}</span> </vt:foreach>
                      </span> </vt:if>
                    <span class="cou-count" title="访问量">{$:#.c.cou_viewNum}</span> <span class="cou-sbj" title="{$:#.c.sbj_name}">{$:#.c.sbj_name}</span> </div>
                </div>
      </vt:foreach>
    </div>
    <vt:else/>
    <div class="nocourse">当前选择条件下没有课程！</div>
    </vt:if>
</div>
<!--分页导航 -->
<vt:if var="pageAmount.Length" value="1" compare=">">
    <div id="pagerBar">
      <div class="pagerFirst pagerBtn"><a href="/courses.ashx?sbjid={$sbjid}">首页</a></div>
      <!--上一页 -->
      <vt:expression var="pagerPrev" expression="{0}-1" args="$pageIndex" />
      <vt:if var="#.pagerPrev" value="1" compare="<">
        <div class="pagerPrev pagerBtn"><a href="#">上一页</a></div>
        <vt:else />
        <div class="pagerPrev pagerBtn"><a href="/courses.ashx?index={$:#.pagerPrev}&sbjid={$sbjid}">上一页</a></div>
      </vt:if>
      <!--分页数字 -->
      <vt:foreach id="pageAmount" from="$#.pageAmount" item="data" index="i" remark="分页数字">
        <vt:if var="#.data" value="$pageIndex" compare="=">
          <div class="pagerIndex pagerBtn pagerCurr"><a href="/courses.ashx?index={$:i}&sbjid={$sbjid}">{$:i}</a></div>
          <vt:else />
          <div class="pagerIndex pagerBtn"><a href="/courses.ashx?index={$:data}&sbjid={$sbjid}">{$:i}</a></div>
        </vt:if>
      </vt:foreach>
      <!--下一页 -->
      <vt:expression var="pagerNext" expression="{0}+1" args="$pageIndex" />
      <vt:if var="#.pagerNext" value="$pageAmount.Length" compare=">">
        <div class="pagerNext pagerBtn"><a href="#">下一页</a></div>
        <vt:else />
        <div class="pagerNext pagerBtn"><a href="/courses.ashx?index={$:#.pagerNext}&sbjid={$sbjid}">下一页</a></div>
      </vt:if>
      <div class="pagerLast pagerBtn"><a href="/courses.ashx?index={$:pageAmount.length}&sbjid={$sbjid}">末页</a></div>
    </div>
  </vt:if>
</div>